<?php

use dmstr\helpers\Html;
use yii\helpers\Url;
use kartik\grid\GridView;
use yii\widgets\DetailView;
use yii\widgets\Pjax;
use dmstr\bootstrap\Tabs;

/**
* @var yii\web\View $this
* @var yiike\core\models\Notice $model
*/
$copyParams = $model->attributes;

$this->title = $model->getAliasModel() . $model->title;
$this->params['breadcrumbs'][] = ['label' => $model->getAliasModel(true), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => (string)$model->title, 'url' => ['view', 'id' => $model->id]];
?>
<div class="giiant-crud notice-view">

    <!-- flash message -->
    <?php if (\Yii::$app->session->getFlash('deleteError') !== null) : ?>
        <span class="alert alert-info alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span></button>
            <?= \Yii::$app->session->getFlash('deleteError') ?>
        </span>
    <?php endif; ?>
    <div class="box box-info">
        <div class="box-header with-border">
            <h3 class="box-title">查看</h3>
            <div class="box-tools pull-right">                
                <?= Html::a('<span class="fa fa-pencil"></span> 编辑', ['update', 'id' => $model->id],['class' => 'btn btn-info btn-sm']) ?> 
                <?= Html::a('<span class="fa fa-plus"></span> 新增', ['create'], ['class' => 'btn btn-success btn-sm']) ?>
                <?= Html::a('<span class="fa fa-list"></span> 列表', ['index'], ['class' => 'btn btn-default btn-sm']) ?>
            </div>
        </div>
        <div class="nav-tabs-custom">
    <?php $this->beginBlock('yiike\core\models\Notice'); ?>

    
    <?= DetailView::widget([
    'model' => $model,
    'attributes' => [
            'id',
        'user_id',
        'level',
        'title_icon',
        'title',
        'content:ntext',
        'sort_order',
        'status',
        'created_by',
        'updated_by',
        'created_at',
        'updated_at',
    ],
    ]); ?>

    
    <hr/>

    <?= Html::a('<span class="fa fa-trash"></span> ' . 'Delete', ['delete', 'id' => $model->id],
    [
    'class' => 'btn btn-danger',
    'data-confirm' => '' . '你确定要删除吗?' . '',
    'data-method' => 'post',
    ]); ?>
    <?php $this->endBlock(); ?>


        <?= Tabs::widget(
                 [
                     'id' => 'relation-tabs',
                     'encodeLabels' => false,
                     'items' => [ [
    'label'   => '<b class=""># '.$model->id.'</b>',
    'content' => $this->blocks['yiike\core\models\Notice'],
    'active'  => true,
], ]
                 ]
    );
    ?>        </div>
    </div>
</div>
